#{extends 'frame.html' /}

#{set title:'买手垫付本金提现管理' /}



#{set 'moreStyles'}

<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/admin/buyer-deposit-withdraw.css'}" />

<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/jquery.pagination.css'}" />

#{/set}

<div class="contentCard">

	<div class="contentTitle">

		<span class="mr10 tab">提现申请列表</span>

	</div>

	<div id="taskFilterPanel" class="clearfix">

		<span class="floatLeft mr10 mb10">用户ID</span>

		<input type="text" id="uid" class="floatLeft mr10 mb10">

		<span class="floatLeft mr10 mb10">买手昵称</span>

		<input type="text" id="nick" class="floatLeft mr10 mb10">

		<span class="floatLeft mr10 mb10">买手旺旺</span>

		<input type="text" id="buyerAccountNick" class="floatLeft mr10 mb10">



		<span class="floatLeft mr10 mb10">卖家昵称</span>

		<input type="text" id="sellerNick" class="floatLeft mr10 mb10">

		<span class="floatLeft mr10 mb10">任务编号</span>

		<input type="text" id="taskId" class="floatLeft mr10 mb10">

		<span class="floatLeft mr10 mb10">买手任务编号</span>

		<input type="text" id="buyerTaskId" class="floatLeft mr10 mb10">

		

		<span class="floatLeft mr10 mb10">申请时间</span>

		<input type="text" id="applyTimeStart" class="floatLeft mr10 mb10">

		<span class="floatLeft mr10 mb10">至</span>

		<input type="text" id="applyTimeEnd" class="floatLeft mr10 mb10">

		<span class="floatLeft mr10 mb10">记录ID</span>

		<input type="text" id="recordId" class="floatLeft mr10 mb10">

		<span class="floatLeft mr10 mb10">记录状态</span>

		<select class="floatLeft mr10 mb10 mt4" id="status">

			#{list items:status, as:'s'}

			<option value="${s}" ${s.toString()=='WAIT'?'selected="true"':''} >${s.name}</option>

			#{/list}

		</select>

		<a class="stdColorButton floatLeft queryBtn mr20" href="javascript:;" id="queryBtn">查询</a>

		<a class="stdColorButton floatLeft queryBtn mr20" href="/admin/withdraw/exportDeposit?isBuyerDispose=true" id="exportBtn">导出全部</a>

		<form action="/admin/withdraw/sysRefund/uploadAllUntradeBuyerDeposit" method="post" id="uploadBuyerDepositForm" enctype="multipart/form-data" target="id_iframe">

				#{authenticityToken /}

				<input type="file" name="file" class="fileInput" id="uploadBuyerDepositFile" multiple="multiple">	

				<a href="javascript:;" class="stdColorButton" id="uploadBuyerDeposit">导入</a>

			</form>

		<span class="floatRight mr40 mb10 bold">元</span>

		<span class="floatRight mr10 mb10 bold red" id="sumAccount"></span>

		<span class="floatRight mr10 mb10 bold">合计：</span>

		<span class="floatRight">

			<iframe id="iframe" name="id_iframe" style="display:none; width: 800px; height: 40px;"></iframe>

		</span>

	</div>

	<div class="mt10">

		<table class="normTable">

			<thead>

				<tr>

					<td>ID</td>

					<td style="width:">申请时间</td>

					<td style="width:">买手昵称</td>

					<td style="width:">申请提现金额</td>

					<td style="width:">实际转账金额</td>

					<td style="width:">状态</td>

					<td style="width:150px">退款交易信息</td>

					<td style="width:">操作</td>

					<td>重置</td>

				</tr>

			</thead>

			<tbody id="tbContainer"></tbody>

		</table>

		<div id="noMsg">

			<div class="warnBox">

				<span class="iconfont">&#xf00b6;</span>

				没有提现申请!

			</div>

		</div>

		<div class="pagin-btm clearFix" style="display: none;">

			<div class="pagination"></div>

		</div>

		<div class="popWrapper" style="display: none;" id="tr_loading_mask">

			<div class="maskLayer"></div>

			<img class="tr_juhua" src="@{'/public/images/pre_loading.gif'}" />

		</div>



		<!--显示资金账号信息窗口-->

		<div class="popWrapper" id="fundAccountWnd" data-id="0" >

			<div class="maskLayer"></div>

			<div class="modalWnd">

				<a href="javascript:;" class="wnd_Close_Icon" title="关闭窗口"></a>

				<h3 class="topTile">提现-退款到用户指定银行卡</h3>

				<div class="modalWndInner">

					<div id="infoBox"></div>

					<br/>

					<input type="text" class="bold red" style="width:300px;" value="财付通：" id="txtTradeInfoOld"/>

				</div>

				<div class="wndBotButtonSection">

					<a id="btnConfirmRefundOld" href="javascript:;" class="stdColorButton">确认已退款</a>

				</div>

			</div>

		</div>



		<!--登记交易号的窗口-->

		<div class="popWrapper" id="tradeInfoAddWnd" data-id="0" >

			<div class="maskLayer"></div>

			<div class="modalWnd">

				<a href="javascript:void(0);" class="wnd_Close_Icon" title="关闭窗口"></a>

				<h3 class="topTile">填写已退款的交易信息</h3>

				<div class="modalWndInner">

					<div id="infoBox">

						<div class="infoBlock">

							<span class="grey">易宝支付后台的交易详情中可以查看对应的“银行”及“银行订单号”</span>

						</div>

						<div class="infoBlock">

							<span class="grey">示例：</span>

							<span class="bold">中国民生银行 01027014977733041106</span>

						</div>

						<div class="infoBlock">

							<span class="bold red">有多个的话以英文半角逗号（“,”）分开</span>

						</div>

						<textarea class="inputText" id="txtTradeInfo" style="height: 150px;width: 360px;"></textarea>

					</div>

				</div>

				<div class="wndBotButtonSection">

					<a id="btnConfirmRefund" href="javascript:;" class="stdColorButton">确认已退款</a>

				</div>

			</div>

		</div>

		

	</div>

</div>



<!-- accountInfo -->

<textarea class="muban" id="accountInfoTpl">

	{{#results}}

	<div class="infoBlock">

		<div class="">

			账号类型：

			<span class="bold">

				<img src="/public/images/bank/{{bank}}.gif"></span>

		</div>

	</div>

	{{#isBank}}

	<div class="infoBlock">

		<div class="">

			卡号：

			<span class="bold red">{{no}}</span>

		</div>

	</div>

	<div class="infoBlock">

		<div class="">

			开户人：

			<span class="bold green">{{name}}</span>

		</div>

	</div>

	<div class="infoBlock">

		<div class="">

			开户行：

			<span class="bold green">{{openingBank}}</span>

		</div>

	</div>

	{{/isBank}}

	{{^isBank}}

	<div class="infoBlock">

		<div class="">

			账号：

			<span class="bold red">{{no}}</span>

		</div>

	</div>

	<div class="infoBlock">

		<div class="">

			姓名：

			<span class="bold green">{{name}}</span>

		</div>

	</div>

	{{/isBank}}

	<div style="border-bottom: 1px dashed #d1d1d1;margin-bottom:10px"></div>

	{{/results}}

	<div class="infoBlock">

		<div class="">

			【{{role}}】用户：

			<span class="bold">{{nick}}</span>

		</div>

	</div>

	<div class="infoBlock">

		<div class="">

			转账金额：

			<span class="bold red">{{amount}}</span>&nbsp;元

		</div>

	</div>

</textarea>



<!--withdraw records-->

<textarea class="muban" id="rowTemp">

	{{#results}}

	<tr>

		<td>{{id}}</td>

		<td>{{applyTimeFor}}</td>

		<td>【{{role}}】{{userNick}}</td>

		<td>{{amountStr}}元</td>

		<td class="realAmountStr" data-amount="{{realAmountStr}}">{{realAmountStr}}元</td>

		<td>{{withdrawStatus}}</td>

		<td>

			{{#hasTradeNo}}

				{{tradeNo}}-{{memo}}

			{{/hasTradeNo}}

			{{^hasTradeNo}}

			<input type="button" class="btnViewAccount grey bold inputBtn" value=" 旧版退款 " data-uid="{{userId}}" data-nick="{{userNick}}" data-role="{{userType}}" data-amount="{{realAmountStr}}" data-bank="{{fundAccountType}}" data-id="{{id}}"/>

			<input type="button" class="refundBtn red bold inputBtn" value=" 确认退款 " data-id="{{id}}"/>

			{{/hasTradeNo}}

		</td>

		<td>

		

		{{#isBuyerDeposit}}

			<a class="J_viewBuyerTask ml20 grey" href="javascript:;" data-id="{{id}}">

				查看任务

				<span class="iconfont f12 showtask" style="padding-left:4px;">&#xf0170;</span>

			</a>

		</td>

		{{/isBuyerDeposit}}

		<td data-id="{{id}}"><a class="midStdColorButton floatLeft resetStatusBtn" href="javascript:;" id="resetStatusBtn">重置状态</a></td>

	</tr>

	<tr style="display:none">

		<td colspan="7" >

			<div class="task-info" ></div>

		</td>

	</tr>



	{{/results}}

</textarea>



<textarea id="taskCellTemp" class="muban">

	{{#results}}

	<div class="taskCell">

		<div class="title">

			<span class="taskNo floatRight">

				任务编号：{{buyerTaskNo}}

				<a target="_blank" href="/buyer/task/{{id}}" class="view-detail">[查看详情]</a>

			</span>

			<span class="shop floatLeft"> <i class="plat_small {{platIcon}}"></i>

				{{shopName}}

			</span>

			

		</div>

		<div class="body">

			<table class="normTable">

				<tbody>

					<tr>

						<td class="item-list">

							<div class="item-box">

								<div class="pic">

									<img src="{{itemPic}}" />

								</div>

								<div class="ml20 floatLeft">

								    {{itemTitle}}

								</div>

							</div>



						</td>

						<td class="nick"> 

							{{buyerAccountNick}}

						</td>

						<td class="price"> 

							{{paidFeeStr}}元

						</td>

						<td class="status">

							{{Time}}

						</td>

					</tr>

				</tbody>



			</table>



		</div>

	</div>

	{{/results}}

</textarea>

#{set 'moreScripts'}

<script src="@{'/public/javascripts/jquery.pagination.js'}" type="text/javascript"></script>

<script src="@{'/public/javascripts/mustache.min.js'}" type="text/javascript"></script>

<script src="@{'/public/javascripts/jquery.number.min.js'}" type="text/javascript"></script>

<script src="@{'/public/javascripts/admin/buyer-deposit-withdraw.js'}" type="text/javascript"></script>

<script type="text/javascript">App.module = 'withdraw';</script>

#{/set} 0 